package com.kfm.wiki.socket;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class WebSocketService {

    @Async // 异步执行
    public void sendMsg(String message){
        WebSocketServer.sendMsg(message);
    }
}
